import Vue from 'vue'
Vue.mixin({
    methods: {
        hasAuth(perm) {
            //获取当前用户权限
            let authority = this.$store.state.menus.permList
            // console.log(authority)
            return authority.indexOf(perm) > -1
        }
    }
})